package com.qfedu.labsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qfedu.labsystem.dao.LabMapper;
import com.qfedu.labsystem.entity.bo.LabBO;
import com.qfedu.labsystem.service.LabService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName LabServiceImpl
 * @Author ykx
 * @Date 2024/4/6 20:23
 * @Version 1.0
 */
@Service
public class LabServiceImpl extends ServiceImpl<LabMapper, LabBO> implements LabService {

    @Autowired
    private LabMapper labMapper;

    @Override
    public List<LabBO> getLabList(LabBO lab) {
        return list();
    }

    @Override
    public Boolean addLab(LabBO lab) {
        return save(lab);
    }

    @Override
    public Boolean updateLab(LabBO lab) {
        return updateById(lab);
    }

    @Override
    public Boolean deleteLab(Integer id) {
        return removeById(id);
    }
}
